package com.crane.oss.sys.bean.resp;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单信息
 *
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2018年12月28日 19时42分58秒
 */
@Getter
@Setter
@ToString
public class TreeMenuBean implements Comparable<TreeMenuBean>, Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private String label;
    private Boolean isLeaf;
    private Integer orderNum;
    private Boolean disabled;
    private List<TreeMenuBean> children;

    @Override
    public int compareTo(TreeMenuBean o) {
        return this.getOrderNum() - o.getOrderNum();
    }

}
